/**
 * @format
 * @Author: TC
 * @Date: 2025-04-20 00:32:48
 * @Last Modified by: TC
 * @Last Modified time: 2025-06-17 13:52:40
 */

import { color } from "cc";
import { EUILayer } from "../../FrameWork/Const/ComponentConst";
import { IUIConfig } from "../../FrameWork/Module/UI/UIInterface";
import { nsBundleConst } from "./BundleConst";

/**
 * 航海Pve资源包
 */
export enum EUIConst {
    //全屏加载界面
    FullLoadingUI = "FullLoadingUI",
    //通用对话框
    SeaCommonDialogUI = "SeaCommonDialogUI",
    //引导
    GuideUI = "GuideUI",
    //主界面
    MainUI = "MainUI",
    //帮助界面
    HelpUI = "HelpUI",
    //设置界面
    SettingUI = "SettingUI",
    //体力界面
    EnergyUI = "EnergyUI",
    //战斗界面
    BattleUI = "BattleUI",
}

/**
 * 航海Pve窗口配置
 */
export const GameUIConfig: { [key: string]: IUIConfig } = {
    //通用对话框
    [EUIConst.SeaCommonDialogUI]: {
        bundleName: nsBundleConst.Module,
        prefabPath: "",
        noBlankClose: true,
        canOpenMore: true,
    },
    //帮助界面
    [EUIConst.HelpUI]: {
        bundleName: nsBundleConst.Module,
        prefabPath: "",
    },
    //引导
    [EUIConst.GuideUI]: {
        bundleName: nsBundleConst.Module,
        prefabPath: "",
        noOpenAni: true,
        noBlankClose: true,
        maskColor: color(0, 0, 0, 150),
        layer: EUILayer.GUIDE,
    },
    //主界面
    [EUIConst.MainUI]: {
        bundleName: nsBundleConst.Module,
        prefabPath: "Main/MainUI",
        fullScreen: true,
        noOpenAni: true,
    },
    //设置界面
    [EUIConst.SettingUI]: {
        bundleName: nsBundleConst.Module,
        prefabPath: "Setting/SettingUI",
    },
    //战斗界面
    [EUIConst.BattleUI]: {
        bundleName: nsBundleConst.Module,
        prefabPath: "Game/Battle/BattleUI",
        fullScreen: true,
        noOpenAni: true,
        maskColor: color(0, 0, 0, 0),
    },
    //全屏加载界面
    [EUIConst.FullLoadingUI]: {
        bundleName: nsBundleConst.Common,
        prefabPath: "Prefab/Common/FullLoadingUI",
        fullScreen: true,
        noOpenAni: true,
        maskColor: color(0, 0, 0, 0),
    },
};
